<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns="http://shining365.cn/programmableweb/data/mashup"
	version="2.0">
	<xsl:template match="/">
		<xsl:for-each select="/HTML/BODY/DIV[3]/DIV[1]/DIV[2]/DIV[2]/TABLE/TBODY">
			<mashups>
				<xsl:for-each select="TR[count(TH) = 0]">
					<mashup name="{TD[2]/A}" url="{substring-after(TD[2]/A/@href, '/mashup/')}" description="{TD[2]/P}" date="{substring-after(TD[2]/EM,'Added: ')}">
						<xsl:for-each select="TD[3]/A">
							<api name="{.}" url="{substring-after(@href, '/api/')}"/>
						</xsl:for-each>
					</mashup>
				</xsl:for-each>
			</mashups>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>